﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BulldogCMS.Core;
using BulldogCMS.Core.Storage;
using BulldogCMS.Core.Storage.DataTypes;

namespace BulldogCMS.Web.Controllers
{
    public class HomeController : BulldogCMS.Core.MVC.BaseController
    {
        public ActionResult Index()
        {
            //using (StorageEditor editor = new StorageEditor())
            //{
            //    Node contentNode =  Context.Application.Tree.GetNode("/Content");
            //    Node newChildNode = contentNode.CreateNode("NewWebsite", "BulldogCMS.Core.Templates.BaseTemplate");
                
            //    newChildNode.Bag.PageTitle = "";
            //    newChildNode.Bag.SEOKeywords = "stůl, židle, cokoliv";
                
            //    int versionNumber = contentNode.CreateNodeVersion("cs-CZ");
            //    contentNode.SelectVersion("cs-CZ", versionNumber);

            //    editor.SaveChanges();
            //}
            return DynamicView();
        }

        public ActionResult About()
        {
            return DynamicView();
        }
    }
}
